home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / logbatch / addpat.arc / ADDPATH.DOC next >
Text File  |  1988-08-20  |  7KB  |  149 lines

  1.      ┌───────────────────────────────────────────────────────────────┐
  2.      │                       ╔═══════════════╗                       │
  3.      │                       ║    ADDPATH    ║                       │
  4.      │                       ╚═══════════════╝                       │
  5.      │                                                               │
  6.      │                                                               │
  7.      │                  ┌─────────────────────┐             │
  8.      │                  │ David Portnoy       │             │
  9.      │                  │ P.O. Box 28321      │             │
  10.      │                  │ St. Louis, MO 63146 │             │
  11.      │                  └─────────────────────┘             │
  12.      │                                                               │
  13.      │                        August 16, 1988                        │
  14.      │                                                               │
  15.      │                                                               │
  16.      │  To me this program represents countless hours of labor;  to  │
  17.      │  you it is a helpful  utility that should  have been  made a  │
  18.      │  long time ago.   If you find it as  useful as I did, please  │
  19.      │  reward my efforts by contributing $5 to $20.  Your generous  │
  20.      │  donation  will help this  impoverished  programmer  pay his  │
  21.      │  tuition and encourage him to write  other useful utilities.  │
  22.      │  If you contribute $20  (more if you feel generous)  I will   │                  │
  23.      │  send you the source code on a diskette by return mail.       │                     │
  24.      │                                                               │
  25.      │                                                               │
  26.      │  Send Questions/Comments/Problems to the address above or     │
  27.      │  leave me a message on The Computer Assistance Network        │
  28.      │                                    (314)298-8564              │
  29.      │                                    (314)298-8363              │
  30.      │                                                               │
  31.      └───────────────────────────────────────────────────────────────┘
  32.  
  33.  
  34.                     This utility adds (or removes) the        
  35.                  specified paths to (from) the environment.
  36.  
  37.  
  38.                                  ┌────────┐ 
  39.                                  │ Format │
  40.                                  └────────┘
  41.  
  42. The format of the path you specify should look like this:
  43.          D:\DIR1\DIR2\DIR3...;
  44. where D is a drive letter and the DIRs are directories followed by
  45. their subdirectories.  You don't have to use capital letters.
  46.  
  47. You can specify more than one path to add by separating the paths
  48. with a semicolon (;) like this:
  49.          D1:\DIR1\DIR2...;D2:\DIR1\DIR2...;D3:\DIR1\DIR2...;...
  50.  
  51. To add a path, specify it after typing "ADDPATH" like this:
  52.          ADDPATH D:\DIR1\DIR2...;...
  53. If you don't specify a path, ADDPATH will prompt you for one.
  54.  
  55. You can add paths to the front of the path environment variable
  56. by typing a double semicolon (;;) after the specified paths like
  57. this:
  58.      ADDPATH D1:\DIR1\DIR2...;...;;D2:\DIR1\DIR2...;...
  59. The paths after the double semicolon are added to the end of the
  60. path environment variable (as paths are usually added).
  61.  
  62.                
  63.                                 ┌─────────┐ 
  64.                                 │ Network │
  65.                                 └─────────┘
  66.  
  67. ADDPATH can also be used with a network.  ADDPATH locates the first
  68. network drive and allows you to specify it and the following drives
  69. by using an asterisk and a number corresponding to the drive.  For
  70. example:
  71.          If the first network drive is N:
  72.               ADDPATH *1:\A;*2:\B;*3:\C;*13:\D;
  73.          is the same as
  74.               ADDPATH N:\A;O:\B;P:\C;Z:\D;
  75.  
  76. But if there is no network drive available or if the specified number
  77. indicates a drive higher than Z:, the path is not added.
  78.  
  79. Of course, with networks you can still specify the actual drive
  80. letter for both local and remote drives.
  81.  
  82.  
  83.                                ┌──────────┐ 
  84.                                │ Switches │
  85.                                └──────────┘
  86.  
  87. ADDPATH provides a few switches that can be entered after the path or
  88. without the path, but not before the path.  If you enter only the
  89. switches, ADDPATH will prompt you for a path.
  90.  
  91. The swithces are preceded by either a dash (-) or a forward slash (/)
  92. and can be in either lower or upper case.  Specify:
  93.  
  94.          -V   to view what is being added to or removed from the path
  95.               environment variable.
  96.  
  97.          -A   to see information such as the location of the
  98.               environment, the moving of memory, the new path created,
  99.               and all the things that the -V swithch displays.
  100.  
  101.      -I   to ignore everything after the last semicolon in the
  102.               specified path.  This switch may be useful if you use
  103.               ADDPATH in a login script of a network.
  104.  
  105.          -D   to delete the specified paths form the environment.  
  106.  
  107.          -F   to add the specified string to the front of the path
  108.            environment variable.  Otherwise, it is added to the end.
  109.  
  110.          -H   to display the switches of ADDPATH.
  111.  
  112.  
  113.                                ┌──────────┐ 
  114.                                │ Examples │
  115.                                └──────────┘
  116.     
  117.     ADDPATH C:\DOS
  118. adds C:\DOS to the end of the path environment variable.
  119.  
  120.     ADDPATH D:\MSC;C:\DOS -V
  121. adds D:\MSC and C:\DOS to the end of the path environment variable and
  122. informs you about the additions.
  123.  
  124.     ADDPATH C:\DOS\EXAMPLES -D -V
  125. removes C:\DOS\EXAMPLES from the path environment variable and informs
  126. you about the deletions. 
  127.  
  128.     ADDPATH D:\MSC\BIN;C:\BASIC -F
  129. adds D:\MSC\BIN and C:\BASIC to the front of the path environment variable.
  130.  
  131.     ADDPATH -H
  132. displays ADDPATH's switches and prompts you to enter a path.
  133.  
  134.     ADDPATH C:\DOS;D:\MSC\BIN;;C:\;A:\;C:\BASIC
  135. adds C:\DOS and D:\MSC\BIN to the front and C:\, A:\, and C:\BASIC to the 
  136. end of the path environment variable.
  137.  
  138.     ADDPATH *1:\PUBLIC;*2:\BACKUP;C:\DOS -D -V
  139. removes <1st network drive>:\PUBLIC, <2nd network drive>:\BACKUP, and
  140. C:\DOS from the path environment variable and displays the deletions.
  141.  
  142.     ADDPATH *1:\PUBLIC;*2:\BACKUP -I
  143. adds <1st network drive>:\PUBLIC to the path environment variable, but
  144. does not add <2nd network drive>:\BACKUP.  This has the same affect as
  145.     ADDPATH *1:\PUBLIC; -I
  146. The -I switch is only useful if you want to use ADDPATH in the login script
  147. of your network.
  148.  
  149.